package com.ordersystem.mappers;

import com.ordersystem.domain.DishCategory;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : asus1020
 * @version : [v1.0]
 * @className : CategoryMapepr
 * @description : [描述说明该类的功能]
 * @createTime : [2022/3/25 22:19]
 * @updateUser : asus1020
 * @updateTime : [2022/3/25 22:19]
 * @updateRemark : [描述说明本次修改内容]
 */
@Repository
public interface CategoryMapepr {
        List<DishCategory>findCategorys();//查询所有菜品分类
        DishCategory findCategoryById(Integer cid);//根据id查询菜品分类
        int deleteCategory(Integer cid);//根据id删除菜品分类
        int addCategory(DishCategory dishCategory);//添加菜品分类
        int updateCategory(DishCategory dishCategory);//修改菜品分类


}
